package com.kevin.service.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.enums.BooleanEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import lombok.Data;

import java.util.List;

@Data
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
public class UserImportDTO {
    @HeadFontStyle(bold = BooleanEnum.FALSE, fontHeightInPoints = 12)
    @ColumnWidth(15)
    @ExcelProperty(value = "用户名",order = 1)
    private String username;

    @HeadFontStyle(bold = BooleanEnum.FALSE, fontHeightInPoints = 12)
    @ColumnWidth(15)
    @ExcelProperty(value = "真实姓名",order = 2)
    private String realName;

    @HeadFontStyle(bold = BooleanEnum.FALSE, fontHeightInPoints = 12)
    @ColumnWidth(15)
    @ExcelProperty(value = "手机号",order = 3)
    private String mobile;

    @HeadFontStyle(bold = BooleanEnum.FALSE, fontHeightInPoints = 12)
    @ColumnWidth(20)
    @ExcelProperty(value = "专业 多个请用，分隔",order = 4)
    private String majorNameList;

    @ExcelIgnore
    private List<Long> majorIdList;
}
